frontend image slider made dynamic