.position {
    position: absolute;
    top: 35%;
    left: 58%;
    transform: translate(-5%, -25%);
}

.slider {
    background-image: url('../IMG/pruebas/consejo_1.PNG');
    background-size: cover;
    height: 85%;
    width: 35%;
    border-radius: 10px;
    animation: animate 40s infinite;
}

@keyframes animate {
    20% {
        background-image: url('../IMG/pruebas/consejo_5.PNG');
        background-size: cover;
    }
    40% {
        background-image: url('../IMG/pruebas/consejo_4.PNG');
        background-size: cover;
    }
    60% {
        background-image: url('../IMG/pruebas/consejo_3.PNG');
        background-size: cover;
    }
    80% {
        background-image: url('../IMG/pruebas/consejo_2.PNG');
        background-size: cover;
    }
    100% {
        background-image: url('../IMG/pruebas/consejo_1.PNG');
        background-size: cover;
    }
}