Fixed- if lightbox{ lightbox construction + imageslider} else{only image slider}

Please if you have any better solution please let me know.