css transition added to gallery widget