added type to images, added logic for sliderimages